﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MoveFramework_CS;

namespace VirtualBlocks.Move_Framework_extension
{
    public class MoveButtonStates
    {
        /*B_T1 = 0x1,
        B_T2 = 0x4,
        B_TRIANGLE = 0x10,
        B_CIRCLE = 0x20,
        B_CROSS = 0x40,
        B_SQUARE = 0x80,
        B_SELECT = 0x100,
        B_START = 0x800,
        B_STICK = 0x200,
        B_UP = 0x1000,
        B_RIGHT = 0x2000,
        B_DOWN = 0x4000,
        B_LEFT = 0x8000,
        B_PS = 0x10000,
        B_MOVE = 0x80000,
        B_T = 0x100000*/
        public int MoveId{get;set;}
        public bool IsT1Pressed { get; set; }
        public bool IsT2Pressed { get; set; }
        public bool IsTrianglePressed { get; set; }
        public bool IsCirclePressed { get; set; }
        public bool IsCrossPressed { get; set; }
        public bool IsSquarePressed { get; set; }
        public bool IsSelectPressed { get; set; }
        public bool IsStartPressed { get; set; }        
        public bool IsStickPressed { get; set; }
        public bool IsUpPressed { get; set; }
        public bool IsRightPressed { get; set; }
        public bool IsDownPressed { get; set; }
        public bool IsLeftPressed { get; set; }
        public bool IsPsPressed { get; set; }
        public bool IsMovePressed { get; set; }
        public bool IsTPressed { get; set; }
        public MoveWrapper.Vector3 Position { get; set; }

        public MoveButtonStates() { }
        public MoveButtonStates(int id, bool t1, bool t2, bool triangle, bool circle, bool cross, bool square, bool select,
            bool start, bool stick, bool up, bool right, bool down, bool left, bool ps, bool move, bool t, MoveWrapper.Vector3 pos)
        {
            MoveId = id;
            IsT1Pressed = t1;
            IsT2Pressed = t2;
            IsTrianglePressed = triangle;
            IsCirclePressed = circle;
            IsCrossPressed = cross;
            IsSquarePressed = square;
            IsSelectPressed = select;
            IsStartPressed = start;
            IsStickPressed = stick;
            IsUpPressed = up;
            IsRightPressed = right;
            IsDownPressed = down;
            IsLeftPressed = left;
            IsPsPressed = ps;
            IsMovePressed = move;
            IsTPressed = t;
            Position = pos;
        }
    }
}
